define("pages/jls_jbxxxx/mainallShow", [
	"../../plugins/easyui/jquery-easyui-1.5.1/jquery.easyui.min",	
	"../../plugins/easyui/jquery-easyui-1.5.1/easyloader",
	"../../common/componts",
	"../../common/tools"
	],
function(require) {	
	var comonts=require("../../common/componts");
	var rybh = $("#rybh").val();
	var gcbh = $("#gcbh").val();
	var formId="";
	var data="";
	var bahjId = "bahjId";
	var yqId="yqId";
	var lshjId="lshjId";
	var tjId="tjId";
	var txId="txId";
	var ysxsId="ysxsId";
	var lscsId="lscsId";
	var csbId="csbId";
	var ylwsglId="ylwsglId";
	var swjyxxId="swjyxxId";
	var jydjxxId="jydjxxId";
	var jstzxxId="jstzxxId";
	var fxpgxxId="fxpgxxId";

	//所有人员信息
	var showSyryByRybh = function(rybh) {
		formId = "#detail_syryfm";
		$.ajax({
			type: "POST",  
			url: "/jls_jbxx/jbxxList",
			data: {
				"rybh":rybh,
			},
			error: function (XMLHttpRequest, textStatus, errorThrown){  
			    $.messager.alert("确定", "人员数据获取失败！", "info");
			},  
			success: function (result) {
				data = result.rows[0];
				if (result.total != 0) {
					syryform(formId,data);
				}
			} 
		});
	}
	//健康登记
	var showJkqkByRybh = function(rybh) {
		formId = "#detail_jkdjfm";
		$.ajax({
			type: "POST",  
			url: "/jls_showdetails/jkqkAndTmtzList",
			data: {
				"rybh":rybh,
			},
			error: function (XMLHttpRequest, textStatus, errorThrown){  
			    $.messager.alert("确定", "健康检查数据获取失败！", "info");
			},  
			success: function (result) {
				var data = result.data;
				if (result.total != 0) {
					syryform(formId,data);
				}
			} 
		});
	}
    //办案环节页面
    var tablebahj = function(){
        $.ajax({
            type : "POST",  //提交方式
            url : "/jls_jbxx/jbxxList",//路径
            data : {
                rybh:"",//数据，这里使用的是Json格式进行传输
            },
            success : function(result) {
                if (result.total!=0) {
                    var data = result.rows;
                    console.log(data);
                    for(var i = 0;i<data.length;i++){
                        var xh = data.length-i;
                        $("#bahjId").append('<tr style="width:30%;background-color:#ffffff"><td>'+(i+1)+'</td><td>'+(data[i].jsh!=null?data[i].jsh:"")+'</td><td>'+data[i].xm+'</td>'
                            +'<td>'+(data[i].gyqx!=null?data[i].gyqx:"")+'</td><td>'+(data[i].bahjString!=null?data[i].bahjString:"")+'</td>'
                            +'<td>'+(data[i].gyqx!=null?data[i].gyqx:"")+'</td><td>'+(data[i].bahjString!=null?data[i].bahjString:"")+'</td>'
                            +'<td>'+(data[i].gyqx!=null?data[i].gyqx:"")+'</td>'
                            +'<td><a href="#" id="bahj_'+i+'" value="'+data[i].rybh+","+data[i].gcbh+","+data[i].xm+'" class="bahj" value="111" name="bahj" data-target="#ckPhoto"  data-toggle="modal" class="easyui-linkbutton"><img src="../../img/xq.png"></a></td></tr>'
                        )
                    }
                    var _class = $('.bahj');
                    _class.each(function(){
                    	$(this).on('click',function(){
                    		var value = $(this).attr("value");
                    		var jbxx = value.split(",");
                    		url="../../jls_jbxxxx/bahjxqym.html?rybh="+jbxx[0]+"&gcbh="+jbxx[1];
                    		addTab(jbxx[2]+"--办案环节详细",url);
                    	});
                    });
                }
            },
        });
    }
    
    //处理结果
    var showcljg = function(rybh) {
        formId = "#detail_cljgxx";
        $.ajax({
            type: "POST",
            url: "/jls_showdetails/jkqkAndTmtzList",
            data: {
                "rybh":rybh,
            },
            error: function (XMLHttpRequest, textStatus, errorThrown){
                $.messager.alert("确定", "健康检查数据获取失败！", "info");
            },
            success: function (result) {
                var data = result.data;
                if (result.total != 0) {
                    syryform(formId,data);
                }
            }
        });
    }
    //延期页面
    var tableyq = function(){
        $.ajax({
            type : "POST",  //提交方式
            url : "/jls_jbxx/jbxxList",//路径
            data : {
                rybh:"",//数据，这里使用的是Json格式进行传输
            },
            success : function(result) {
                if (result.total!=0) {
                    var data = result.rows;
                    console.log(data);
                    for(var i = 0;i<data.length;i++){
                        var xh = data.length-i;
                        $("#yqId").append('<tr style="width:30%;background-color:#ffffff"><td>'+(i+1)+'</td><td>'+(data[i].jsh!=null?data[i].jsh:"")+'</td><td>'+data[i].xm+'</td>'
                            +'<td>'+(data[i].gyqx!=null?data[i].gyqx:"")+'</td><td>'+(data[i].bahjString!=null?data[i].bahjString:"")+'</td>'
                            +'<td>'+(data[i].gyqx!=null?data[i].gyqx:"")+'</td>'
                            +'<td><a href="#" id="yq_'+i+'" value="'+data[i].rybh+","+data[i].gcbh+","+data[i].xm+'" class="yq" value="111" name="yq" data-target="#ckPhoto"  data-toggle="modal" class="easyui-linkbutton"><img src="../../img/xq.png"></a></td></tr>'
                        )
                    }
                    var _class = $('.yq');
                    _class.each(function(){
                        $(this).on('click',function(){
                            var value = $(this).attr("value");
                            var jbxx = value.split(",");
                            url="../../jls_jbxxxx/yqxqym.html?rybh="+jbxx[0]+"&gcbh="+jbxx[1];
                            addTab(jbxx[2]+"--延期详细",url);
                        });
                    });
                }
            }
        });
    }
    //律师会见页面
    var tablelshj = function(){
        $.ajax({
            type : "POST",  //提交方式
            url : "/jls_jbxx/jbxxList",//路径
            data : {
                rybh:"",//数据，这里使用的是Json格式进行传输
            },
            success : function(result) {
                if (result.total!=0) {
                    var data = result.rows;
                    console.log(data);
                    for(var i = 0;i<data.length;i++){
                        var xh = data.length-i;
                        $("#lshjId").append('<tr style="width:30%;background-color:#ffffff"><td>'+(i+1)+'</td><td>'+(data[i].jsh!=null?data[i].jsh:"")+'</td><td>'+data[i].xm+'</td>'
                            +'<td>'+(data[i].gyqx!=null?data[i].gyqx:"")+'</td><td>'+(data[i].bahjString!=null?data[i].bahjString:"")+'</td>'
                            +'<td>'+(data[i].gyqx!=null?data[i].gyqx:"")+'</td>'
                            +'<td><a href="#" id="lshj_'+i+'" value="'+data[i].rybh+","+data[i].gcbh+","+data[i].xm+'" class="lshj" value="111" name="lshj" data-target="#ckPhoto"  data-toggle="modal" class="easyui-linkbutton"><img src="../../img/xq.png"></a></td></tr>'
                        )
                    }
                    var _class = $('.lshj');
                    _class.each(function(){
                        $(this).on('click',function(){
                            var value = $(this).attr("value");
                            var jbxx = value.split(",");
                            url="../../jls_jbxxxx/lshjxqym.html?rybh="+jbxx[0]+"&gcbh="+jbxx[1];
                            addTab(jbxx[2]+"--律师会见详细",url);
                        });
                    });
                }
            }
        });
    }
    //提解页面
    var tabletj = function(){
        $.ajax({
            type : "POST",  //提交方式
            url : "/jls_jbxx/jbxxList",//路径
            data : {
                rybh:"",//数据，这里使用的是Json格式进行传输
            },
            success : function(result) {
                if (result.total!=0) {
                    var data = result.rows;
                    console.log(data);
                    for(var i = 0;i<data.length;i++){
                        var xh = data.length-i;
                        $("#tjId").append('<tr style="width:30%;background-color:#ffffff"><td>'+(i+1)+'</td><td>'+(data[i].jsh!=null?data[i].jsh:"")+'</td><td>'+data[i].xm+'</td>'
                            +'<td>'+(data[i].gyqx!=null?data[i].gyqx:"")+'</td><td>'+(data[i].bahjString!=null?data[i].bahjString:"")+'</td>'
                            +'<td><a href="#" id="tj_'+i+'" value="'+data[i].rybh+","+data[i].gcbh+","+data[i].xm+'" class="tj" value="111" name="tj" data-target="#ckPhoto"  data-toggle="modal" class="easyui-linkbutton"><img src="../../img/xq.png"></a></td></tr>'
                        )
                    }
                    var _class = $('.tj');
                    _class.each(function(){
                        $(this).on('click',function(){
                            var value = $(this).attr("value");
                            var jbxx = value.split(",");
                            url="../../jls_jbxxxx/tjxqym.html?rybh="+jbxx[0]+"&gcbh="+jbxx[1];
                            addTab(jbxx[2]+"--提解详细",url);
                        });
                    });
                }
            }
        });
    }
    //提讯页面
    var tabletx = function(){
        $.ajax({
            type : "POST",  //提交方式
            url : "/jls_jbxx/jbxxList",//路径
            data : {
                rybh:"",//数据，这里使用的是Json格式进行传输
            },
            success : function(result) {
                if (result.total!=0) {
                    var data = result.rows;
                    console.log(data);
                    for(var i = 0;i<data.length;i++){
                        var xh = data.length-i;
                        $("#txId").append('<tr style="width:30%;background-color:#ffffff"><td>'+(i+1)+'</td><td>'+(data[i].jsh!=null?data[i].jsh:"")+'</td><td>'+data[i].xm+'</td>'
                            +'<td>'+(data[i].gyqx!=null?data[i].gyqx:"")+'</td><td>'+(data[i].bahjString!=null?data[i].bahjString:"")+'</td>'
                            +'<td>'+(data[i].gyqx!=null?data[i].gyqx:"")+'</td><td>'+(data[i].bahjString!=null?data[i].bahjString:"")+'</td>'
                            +'<td><a href="#" id="tx_'+i+'" value="'+data[i].rybh+","+data[i].gcbh+","+data[i].xm+'" class="tx" value="111" name="tx" data-target="#ckPhoto"  data-toggle="modal" class="easyui-linkbutton"><img src="../../img/xq.png"></a></td></tr>'
                        )
                    }
                    var _class = $('.tx');
                    _class.each(function(){
                        $(this).on('click',function(){
                            var value = $(this).attr("value");
                            var jbxx = value.split(",");
                            url="../../jls_jbxxxx/txxqym.html?rybh="+jbxx[0]+"&gcbh="+jbxx[1];
                            addTab(jbxx[2]+"--提讯详细",url);
                        });
                    });
                }
            }
        });
    }
    //医生巡视页面
    var tableysxs = function(){
        $.ajax({
            type : "POST",  //提交方式
            url : "/jls_jbxx/jbxxList",//路径
            data : {
                rybh:"",//数据，这里使用的是Json格式进行传输
            },
            success : function(result) {
                if (result.total!=0) {
                    var data = result.rows;
                    console.log(data);
                    for(var i = 0;i<data.length;i++){
                        var xh = data.length-i;
                        $("#ysxsId").append('<tr style="width:30%;background-color:#ffffff"><td>'+(i+1)+'</td><td>'+(data[i].jsh!=null?data[i].jsh:"")+'</td><td>'+data[i].xm+'</td>'
                            +'<td>'+(data[i].gyqx!=null?data[i].gyqx:"")+'</td>'
                            +'<td><a href="#" id="ysxs_'+i+'" value="'+data[i].rybh+","+data[i].gcbh+","+data[i].xm+'" class="ysxs" value="111" name="ysxs" data-target="#ckPhoto"  data-toggle="modal" class="easyui-linkbutton"><img src="../../img/xq.png"></a></td></tr>'
                        )
                    }
                    var _class = $('.ysxs');
                    _class.each(function(){
                        $(this).on('click',function(){
                            var value = $(this).attr("value");
                            var jbxx = value.split(",");
                            url="../../jls_jbxxxx/ysxsxqym.html?rybh="+jbxx[0]+"&gcbh="+jbxx[1];
                            addTab(jbxx[2]+"--医生巡视详细",url);
                        });
                    });
                }
            }
        });
    }
    //临时出所
    var showlscs = function(rybh) {
        formId = "#detail_lscsxx";
        $.ajax({
            type: "POST",
            url: "/jls_showdetails/jkqkAndTmtzList",
            data: {
                "rybh":rybh,
            },
            error: function (XMLHttpRequest, textStatus, errorThrown){
                $.messager.alert("确定", "健康检查数据获取失败！", "info");
            },
            success: function (result) {
                var data = result.data;
                if (result.total != 0) {
                    syryform(formId,data);
                }
            }
        });
    }
    //出所表
    var showcsb = function(rybh) {
        formId = "#detail_csbxx";
        $.ajax({
            type: "POST",
            url: "/jls_showdetails/jkqkAndTmtzList",
            data: {
                "rybh":rybh,
            },
            error: function (XMLHttpRequest, textStatus, errorThrown){
                $.messager.alert("确定", "健康检查数据获取失败！", "info");
            },
            success: function (result) {
                var data = result.data;
                if (result.total != 0) {
                    syryform(formId,data);
                }
            }
        });
    }
    //医疗卫生管理页面
    var tableylwsgl = function(){
        $.ajax({
            type : "POST",  //提交方式
            url : "/jls_jbxx/jbxxList",//路径
            data : {
                rybh:"",//数据，这里使用的是Json格式进行传输
            },
            success : function(result) {
                if (result.total!=0) {
                    var data = result.rows;
                    console.log(data);
                    for(var i = 0;i<data.length;i++){
                        var xh = data.length-i;
                        $("#ylwsglId").append('<tr style="width:30%;background-color:#ffffff"><td>'+(i+1)+'</td><td>'+(data[i].jsh!=null?data[i].jsh:"")+'</td><td>'+data[i].xm+'</td>'
                            +'<td>'+(data[i].gyqx!=null?data[i].gyqx:"")+'</td><td>'+(data[i].bahjString!=null?data[i].bahjString:"")+'</td>'
                            +'<td>'+(data[i].gyqx!=null?data[i].gyqx:"")+'</td>'
                            +'<td><a href="#" id="ylwsgl_'+i+'" value="'+data[i].rybh+","+data[i].gcbh+","+data[i].xm+'" class="ylwsgl" value="111" name="ylwsgl" data-target="#ckPhoto"  data-toggle="modal" class="easyui-linkbutton"><img src="../../img/xq.png"></a></td></tr>'
                        )
                    }
                    var _class = $('.ylwsgl');
                    _class.each(function(){
                        $(this).on('click',function(){
                            var value = $(this).attr("value");
                            var jbxx = value.split(",");
                            url="../../jls_jbxxxx/ylwsglxqym.html?rybh="+jbxx[0]+"&gcbh="+jbxx[1];
                            addTab(jbxx[2]+"--医疗卫生管理详细",url);
                        });
                    });
                }
            }
        });
    }
    //所外就医页面
    var tableswjy = function(){
        $.ajax({
            type : "POST",  //提交方式
            url : "/jls_jbxx/jbxxList",//路径
            data : {
                rybh:"",//数据，这里使用的是Json格式进行传输
            },
            success : function(result) {
                if (result.total!=0) {
                    var data = result.rows;
                    console.log(data);
                    for(var i = 0;i<data.length;i++){
                        var xh = data.length-i;
                        $("#swjyxxId").prepend('<tr style="width:30%;background-color:#ffffff"><td>'+xh+'</td><td>'+(data[i].jsh!=null?data[i].jsh:"")+'</td><td>'+data[i].xm+'</td>'
                            +'<td>'+(data[i].gyqx!=null?data[i].gyqx:"")+'</td><td>'+(data[i].bahjString!=null?data[i].bahjString:"")+'</td>'
                            +'<td><a href="#"  data-target="#ckPhoto" onclick="show('+data[i].rybh+","+data[i].gcbh+",'"+data[i].xm+"'"+')" data-toggle="modal" class="easyui-linkbutton"><img src="../../img/xq.png"></a></td></tr>'
                        )
                    }
                }
            }
        });
    }
    //教育登记页面
    var tablejydj = function(){
        $.ajax({
            type : "POST",  //提交方式
            url : "/jls_jbxx/jbxxList",//路径
            data : {
                rybh:"",//数据，这里使用的是Json格式进行传输
            },
            success : function(result) {
                if (result.total!=0) {
                    var data = result.rows;
                    console.log(data);
                    for(var i = 0;i<data.length;i++){
                        var xh = data.length-i;
                        $("#jydjxxId").append('<tr style="width:30%;background-color:#ffffff"><td>'+(i+1)+'</td><td>'+(data[i].jsh!=null?data[i].jsh:"")+'</td><td>'+data[i].xm+'</td>'
                            +'<td>'+(data[i].gyqx!=null?data[i].gyqx:"")+'</td><td>'+(data[i].bahjString!=null?data[i].bahjString:"")+'</td>'
                            +'<td>'+(data[i].bahjString!=null?data[i].bahjString:"")+'</td>'
                            +'<td><a href="#" id="jydj_'+i+'" value="'+data[i].rybh+","+data[i].gcbh+","+data[i].xm+'" class="jydj" value="111" name="jydj" data-target="#ckPhoto"  data-toggle="modal" class="easyui-linkbutton"><img src="../../img/xq.png"></a></td></tr>'
                        )
                    }
                    var _class = $('.jydj');
                    _class.each(function(){
                        $(this).on('click',function(){
                            var value = $(this).attr("value");
                            var jbxx = value.split(",");
                            url="../../jls_jbxxxx/jydjxqym.html?rybh="+jbxx[0]+"&gcbh="+jbxx[1];
                            addTab(jbxx[2]+"--教育登记详细",url);
                        });
                    });
                }
            }
        });
    }


    //械具使用
    var showxjsy = function(rybh) {
        formId = "#detail_xjsyxx";
        $.ajax({
            type: "POST",
            url: "/jls_showdetails/jkqkAndTmtzList",
            data: {
                "rybh":rybh,
            },
            error: function (XMLHttpRequest, textStatus, errorThrown){
                $.messager.alert("确定", "健康检查数据获取失败！", "info");
            },
            success: function (result) {
                var data = result.data;
                if (result.total != 0) {
                    syryform(formId,data);
                }
            }
        });
    }

    //新监室调整页面
    var tablejstz = function(){
        $.ajax({
            type : "POST",  //提交方式
            url : "/jls_jbxx/jbxxList",//路径
            data : {
                rybh:"",//数据，这里使用的是Json格式进行传输
            },
            success : function(result) {
                if (result.total!=0) {
                    var data = result.rows;
                    console.log(data);
                    for(var i = 0;i<data.length;i++){
                        var xh = data.length-i;
                        $("#jstzxxId").append('<tr style="width:30%;background-color:#ffffff"><td>'+(i+1)+'</td><td>'+(data[i].jsh!=null?data[i].jsh:"")+'</td><td>'+data[i].xm+'</td>'
                            +'<td>'+(data[i].gyqx!=null?data[i].gyqx:"")+'</td><td>'+(data[i].bahjString!=null?data[i].bahjString:"")+'</td>'
                            +'<td>'+(data[i].gyqx!=null?data[i].gyqx:"")+'</td><td>'+(data[i].bahjString!=null?data[i].bahjString:"")+'</td>'
                            +'<td><a href="#" id="jstz_'+i+'" value="'+data[i].rybh+","+data[i].gcbh+","+data[i].xm+'" class="jstz" value="111" name="jstz" data-target="#ckPhoto"  data-toggle="modal" class="easyui-linkbutton"><img src="../../img/xq.png"></a></td></tr>'
                        )
                    }
                    var _class = $('.jstz');
                    _class.each(function(){
                        $(this).on('click',function(){
                            var value = $(this).attr("value");
                            var jbxx = value.split(",");
                            url="../../jls_jbxxxx/jstzxqym.html?rybh="+jbxx[0]+"&gcbh="+jbxx[1];
                            addTab(jbxx[2]+"--监室调整详细",url);
                        });
                    });
                }
            }
        });
    }

    //重病号
    var showzbh = function(rybh) {
        formId = "#detail_zbhxx";
        $.ajax({
            type: "POST",
            url: "/jls_showdetails/jkqkAndTmtzList",
            data: {
                "rybh":rybh,
            },
            error: function (XMLHttpRequest, textStatus, errorThrown){
                $.messager.alert("确定", "健康检查数据获取失败！", "info");
            },
            success: function (result) {
                var data = result.data;
                if (result.total != 0) {
                    syryform(formId,data);
                }
            }
        });
    }
    //新风险评估页面
    var tablefxpg = function(){
        $.ajax({
            type : "POST",  //提交方式
            url : "/jls_jbxx/jbxxList",//路径
            data : {
                rybh:"",//数据，这里使用的是Json格式进行传输
            },
            success : function(result) {
                if (result.total!=0) {
                    var data = result.rows;
                    console.log(data);

                    for(var i = 0;i<data.length;i++){
                        var xh = data.length-i;
                        $("#fxpgxxId").append('<tr style="width:30%;background-color:#ffffff"><td>'+(i+1)+'</td><td>'+(data[i].jsh!=null?data[i].jsh:"")+'</td><td>'+data[i].xm+'</td>'
                            +'<td>'+(data[i].gyqx!=null?data[i].gyqx:"")+'</td><td>'+(data[i].bahjString!=null?data[i].bahjString:"")+'</td>'
                            +'<td><a href="#" id="fxpg_'+i+'" value="'+data[i].rybh+","+data[i].gcbh+","+data[i].xm+'" class="fxpg" value="111" name="fxpg" data-target="#ckPhoto"  data-toggle="modal" class="easyui-linkbutton"><img src="../../img/xq.png"></a></td></tr>'
                        )
                    }
                    var _class = $('.fxpg');
                    _class.each(function(){
                        $(this).on('click',function(){
                            var value = $(this).attr("value");
                            var jbxx = value.split(",");
                            url="../../jls_jbxxxx/fxpgxqym.html?rybh="+jbxx[0]+"&gcbh="+jbxx[1];
                            addTab(jbxx[2]+"--风险评估详细",url);
                        });
                    });
                }
            }
        });
    }

    
    
    
	var Openform = function(rybh){
		var opens = $("#forms").val();
		console.log(opens);
		if(opens == "syryxx"){////所有人员
			showSyryByRybh(rybh);
		}else if(opens == "jkdjxx"){////健康登记
			showJkqkByRybh(rybh);
		}else if(opens == "shryxx"){
		}else if(opens == "shgxxx"){
		}else if(opens == "jyxxryxx"){
		}else if(opens == "wpdjxx"){
		}else if(opens == "bahjxx"){
			tablebahj(rybh);
		}else if(opens == "cljgxx"){////处理结果
            showcljg(rybh);
        }else if(opens == "yqxx"){
			tableyq(rybh);
		}else if(opens == "lshjxx"){
           tablelshj(rybh);
        }else if(opens == "tjxx"){
            tabletj(rybh);
        }else if(opens == "txxx"){
            tabletx(rybh);
        }else if(opens == "ysxsxx"){
            tableysxs(rybh);
        }else if(opens == "slajxx"){
        }else if(opens == "lscsxx"){///临时出所
            showlscs(rybh);
        }else if(opens == "rlqbxsxx"){
        }else if(opens == "bwjyxx"){
        }else if(opens == "csbxx"){///出所表
            showcsb(rybh);
        }else if(opens == "jxjxxx"){
        }else if(opens == "ylwsglxx"){
            tableylwsgl(rybh);
        }else if(opens == "jlbxx"){
        }else if(opens == "jshjxx"){
        }else if(opens == "jssqswxx"){
        }else if(opens == "jxbxx"){
        }else if(opens == "cfbxx"){
        }else if(opens == "swjyxx"){
            tableswjy(rybh);
        }else if(opens == "jydjxx"){
            tablejydj(rybh);
        }else if(opens == "zyjwzxxx"){
        }else if(opens == "lxbxx"){
        }else if(opens == "xjsyxx"){///械具使用
            showxjsy(rybh);
        }else if(opens == "swbxx"){
        }else if(opens == "lsxx"){
        }else if(opens == "jstzxx"){
            tablejstz(rybh);
        }else if(opens == "emxx"){
        }else if(opens == "emfkqkxx"){
        }else if(opens == "tpbxx"){
        }else if(opens == "zbhxx"){///重病号
            showzbh(rybh);
        }else if(opens == "fxpgxx"){
            tablefxpg(rybh);
        }else if(opens == "xsczbxx"){
        }
	}
	
	var syryform = function(formId,data) {
		var sss = $(formId).find("input").filter(function(index){
            return $(this).attr("name")!=undefined;
        	}).each(function(){
            name= $(this).attr("name");
            if(name!=undefined&&name!=""&&name!=null){
            	//赋值
                $(formId+"_"+name).textbox("setValue",data[name]);
            }
        });
	}
	var initView=function(rybh,gcbh){
		Openform(rybh);
	}
	initView(rybh,gcbh);
	
});
